import request from '@/utils/request'

const baseUrl = '/api/performance-appeal'

// 获取绩效考评申诉列表
export function getPerformanceAppealList(params) {
    return request({
        url: `${baseUrl}/list`,
        method: 'get',
        params
    })
}

// 获取绩效考评申诉详情
export function getPerformanceAppealDetail(id) {
    return request({
        url: `${baseUrl}/${id}`,
        method: 'get'
    })
}

// 保存绩效考评申诉
export function savePerformanceAppeal(data) {
    return request({
        url: `${baseUrl}/save`,
        method: 'post',
        data
    })
}

// 删除绩效考评申诉
export function deletePerformanceAppeal(id) {
    return request({
        url: `${baseUrl}/${id}`,
        method: 'delete'
    })
} 